package 二叉树层序遍历.二叉树的右视图;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        TreeNode root = new TreeNode(1);
        root.left = new TreeNode(2);
        root.right = new TreeNode(3);
        root.left.right = new TreeNode(5);
        root.right.right = new TreeNode(4);

        // Add your test logic here
        Solution solution = new Solution();
        List<Integer> integers = solution.rightSideView(root);
        System.out.println(integers);
    }

}
